<template>
  <div class="right_index clearfix">
    <div class="content_scroll">
      <ModuleTitle />
      <div class="box">
        <shopNum :startT="startT" />
        <shopType :startT="startT" />
      </div>

      <ModuleTitle title="银行服务统计" />
      <div class="box mb">
        <financingNum :startT="startT" />
        <creditStatistics :startT="startT" />
      </div>
      <loanBalanceStatistics class="loanBalanceStatistics" :startT="startT" />

      <ModuleTitle title="收单服务统计" />
      <div class="box mb">
        <merchantsNum :startT="startT" />
        <flowingWaterStatistics :startT="startT" />
      </div>
      <div class="box">
        <payDiscountsStatistics :startT="startT" />
      </div>
    </div>
  </div>
</template>

<script>
import ModuleTitle from '../../ModuleTitle/index'
import shopNum from './shop/shopNum.vue'
import shopType from './shop/shopType.vue'

import financingNum from './blank/financingNum.vue'
import creditStatistics from './blank/creditStatistics.vue'
import loanBalanceStatistics from './blank/loanBalanceStatistics.vue'

import merchantsNum from './collectSingle/merchantsNum.vue'
import flowingWaterStatistics from './collectSingle/flowingWaterStatistics.vue'
import payDiscountsStatistics from './collectSingle/payDiscountsStatistics.vue'

export default {
  props: {
    startT: {
      type: String,
      default: '',
    },
  },
  components: {
    shopNum,
    shopType,
    financingNum,
    creditStatistics,
    loanBalanceStatistics,
    merchantsNum,
    flowingWaterStatistics,
    payDiscountsStatistics,
    ModuleTitle,
  },
}
</script>

<style lang="scss" scoped>
.right_index {
  position: absolute;
  top: 280px;
  right: 0px;
  width: 900px;
  overflow: hidden;
  height: 900px;
  /* display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: space-between; */
  cursor: pointer;
  z-index: 999;
  .content_scroll {
    height: 100%;
    overflow: hidden;
    cursor: pointer;

    .mb {
      margin-bottom: 20px;
    }

    .box {
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .loanBalanceStatistics {
      width: calc(100% - 20px) !important;
    }
  }

  .content_scroll:hover {
    overflow-y: auto;
  }

  /*定义滚动条宽高及背景，宽高分别对应横竖滚动条的尺寸*/
  .content_scroll::-webkit-scrollbar {
    width: 10px; /*对垂直流动条有效*/
    height: 10px; /*对水平流动条有效*/
    position: relative;
  }

  /*定义滚动条的轨道颜色、内阴影及圆角*/
  .content_scroll::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: rgb(31, 49, 97);
    border-radius: 3px;
  }

  /*定义滑块颜色、内阴影及圆角*/
  .content_scroll::-webkit-scrollbar-thumb {
    border-radius: 7px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: rgb(55, 80, 148);
    width: 5px;
    position: absolute;
  }
}
</style>
